package com.wmh.baseservice.admin.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @author 谢骏
 * @TableName ad_view_record
 * @createDate 2023-07-16 13:45:26
 */
@Data
@Accessors(chain = true)
@TableName("ad_view_record")
public class AdViewRecord implements Serializable {

    /**
     * 主键
     */
    @TableId(value = COL_ID ,type = IdType.AUTO)
    private Long id;

    /**
     * 管理员主键
     */
    @TableField(value = COL_AD_ID)
    private Long adId;

    /**
     * 记录名称
     * */
    @TableField(value = COL_NAME)
    private String name;

    /**
     * 页面组件路径
     */
    @TableField(value = COL_COMPONENT_URL)
    private String componentUrl;

    /**
     * json字符串格式的界面参数
     */
    @TableField(value = COL_JSON_PARAM)
    private String jsonParam;

    /**
     * 创建时间
     */
    @TableField(value = COL_CREATE_TIME)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = COL_UPDATE_TIME)
    private LocalDateTime updateTime;

    /**
     * 是否删除 0否 1是
     */
    @TableField(value = COL_DELETED)
    @TableLogic
    private Integer deleted;


    /**
     * 主键
     */
    public static final String COL_ID = "id";

    /**
     * 记录名称
     * */
    public static final String COL_NAME = "name";

    /**
     * 管理员主键
     */
    public static final String COL_AD_ID = "ad_id";

    /**
     * 页面组件路径
     */
    public static final String COL_COMPONENT_URL = "component_url";

    /**
     * json字符串格式的界面参数
     */
    public static final String COL_JSON_PARAM = "jsonParam";

    /**
     * 创建时间
     */
    public static final String COL_CREATE_TIME = "create_time";

    /**
     * 修改时间
     */
    public static final String COL_UPDATE_TIME = "update_time";

    /**
     * 是否删除 0否 1是
     */
    public static final String COL_DELETED = "deleted";



    @TableField(exist = false)
    static final long serialVersionUID = 1L;
}
